//班级管理
import axios from '../utils/request'
// 添加学生接口
export const mangerstudent = (params) => axios.post('/manger/student', params)
// 更新学生信息接口
export const mangerstudentedit = (params) => axios.put('/manger/student/edit', params)
// 删除学生接口
export const mangerstudentid = (params) => axios.delete(`/manger/student/${params}`)
// 添加教室接口
export const addmangerroom = (params) => axios.post('/manger/room', params)
// 更新教室接口
export const mangerroomupdate = (params) => axios.put('/manger/room/update', params)
// 删除教室接口
export const mangerroomdelete = (params) => axios.delete('/manger/room/delete', {data: params})
// 添加班级接口
export const mangergrade = (params) => axios.post('/manger/grade', params)
// 更新班级信息
export const mangergradeupdate = (params) => axios.put('/manger/grade/update', params)
// 删除班级接口
export const mangergradedelete = (params) => axios.delete('/manger/grade/delete', {data: params})
// 获取已经分配教室的班级的接口
export const getmangergrade = () => axios.get('/manger/grade')
// 获取全部教室
export const mangerroom = () => axios.get('/manger/room')
// 已经分班学生接口
export const getmangerstudent = () => axios.get('/manger/student')
// 没有分班学生接口
export const mangerstudentnew = () => axios.get('/manger/student/new')
// 获取没有分配教室的班级
export const mangergradenew = () => axios.get('/manger/grade/new')
//全部课程
export const fetchSubject = () => axios.get('/exam/subject')